<template>
  <div style=" display: flex;justify-content: center;">
    <el-card style="margin-top: 30px;width: 90%;" >
    <el-table :data="rehearsalList" :header-cell-style="{textAlign:'center',fontSize: '20px',marginTop:'3px'}"
              style="
  font-size: 24px;
  width: 100%;margin-top: 6px" height="900"  stripe border>
      <template slot="empty">
        玉泉宫
      </template>
      <el-table-column label="排活" align="center" prop="rowNumber" >
        <template slot-scope="scope">
          <div style="margin-top: 3px">{{ scope.row.rowNumber }}</div>
        </template>
      </el-table-column>
      <el-table-column label="排队时间" align="center" prop="technicianNumber">

        <template slot-scope="scope">
          <div style="margin-top: 3px">{{ scope.row.note2 }}</div>
        </template>
      </el-table-column>
      <el-table-column label="技师状态" align="center" prop="technicianNumber">

        <template slot-scope="scope">
          <div style="margin-top: 3px">{{ scope.row.note3 }}</div>
        </template>
      </el-table-column>
      <el-table-column label="技师工号" align="center" prop="note1">

        <template slot-scope="scope">
          <div style="margin-top: 3px">{{ scope.row.note1 }}</div>
        </template>
      </el-table-column>
      <el-table-column label="技师" align="center" prop="note1">

        <template slot-scope="scope">
          <div style="margin-top: 3px">{{ scope.row.note4 }}</div>
        </template>
      </el-table-column>
    </el-table>
      <div style="margin-top: 10px;margin-right: 10px;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
">
        <el-button
          type="danger"
          style="width: 180px;height: 60px;font-size: 25px"
          plain
          @click="back1"
        >返回</el-button>
      </div>
    </el-card>

  </div>

</template>
<script>
import {listRehearsal} from "@/api/module/yzx/rehearsal";

export default {
  name: "Rehearsal",
  data() {
    return {
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // project表格数据
      rehearsalList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        rowNumber: null,
        technicianNumber: null,
        note1: null,
        note2: null,
        note3: null,
        note4: null,
        note5: null,
        note6: null,
        note7: null,
        note8: null,
        note9: null,
        note10: null,
        orderByColumn:"rowNumber"
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {}
    };
  },
  created() {
    this.getList();
  },
  methods: {
    // 修改 table cell边框的背景色
    back1() {
      this.$router.push({path: "/jishi/jingliindex"});
    },
  getList() {
    this.loading = true;
    listRehearsal(this.queryParams).then(response => {
      this.rehearsalList = response.rows;
      this.total = response.total;
      this.loading = false;
    });
  },
}}
</script>
<style>
  .cell-class-name {

  }
</style>
